Skip to content

Document how an API call and a streamed call are processed - #646

Merged
jeff377 merged 1 commit into
mainfrom
claude/api-call-flow-docs
Dec 3, 2026
Merged

jeff377 merged 1 commit into
mainfrom
claude/api-call-flow-docs

Conversation

@jeff377

@jeff377 jeff377 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Adds two user documents with sequence diagrams, each in English (docs/en/api/) and Traditional Chinese (docs/zh-TW/api/):

  • api-call-flow.md — one call from a connector to the business object and back, limited to what Polhem adds on top of Polhem.JsonRpc:
    • the session key: RSA at System.Login, IApiEncryptionKeyProvider, and how PolhemPayloadPolicy hands the key to the payload filter through IPayloadServerPolicy
    • the server steps in order: PolhemObjectFactory (API key, authorization), PolhemMethodPolicy, PolhemAccessFilter (ApiAccessControlAttribute), PolhemPayloadFilter, the binder, ApiOutputConverter, PolhemExceptionMapper
    • how the body codec (MessagePack or JSON) is chosen per request
  • api-streamed-calls.md — business objects do not stream (PolhemMethodPolicy, Move to Polhem.JsonRpc 1.4.0 and refuse streaming methods in PolhemMethodPolicy #644); what a caller that asks for text/event-stream gets from a Polhem server.

The transport, the dispatcher, the payload envelope and SSE streaming are not repeated: both documents link to Polhem.JsonRpc's docs/request-flow.md and docs/streaming.md. Defaults, byte layouts and counts are left to the types, READMEs and ADRs they link to. Both documents are listed under Concepts and under "API & frontend" in the docs index.

Verified locally: ./check-md-links.sh, ./check-docs-i18n.sh and ./check-public-docs.sh pass. Documentation only; no build or test change. No wire change, so nothing follows downstream.

Adds two user documents, in English with their Traditional Chinese
translations, that follow one call through what Polhem adds on top of
Polhem.JsonRpc: the session key issued at sign-in under RSA and handed to
the payload filter through IApiEncryptionKeyProvider and
PolhemPayloadPolicy, the object factory, method policy and access filter
that run before a business object method, and how the body codec is
chosen. The transport, dispatcher and payload envelope are left to
Polhem.JsonRpc's request-flow and streaming documents, which both link to.

The streamed-call document explains that business objects do not stream
(PolhemMethodPolicy, since #644) and what a caller that asks for a stream
gets from a Polhem server. Both are listed under Concepts in the docs index.
@jeff377
jeff377 enabled auto-merge December 3, 2026 06:19
@jeff377
jeff377 added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit a9cc281 Dec 3, 2026
4 checks passed
@jeff377
jeff377 deleted the claude/api-call-flow-docs branch December 3, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant